package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.user.Feedback;
import com.cskaoyan.bean.wx_feedback.FeedbackBo;
import com.cskaoyan.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * \* Description:
 * \
 */
@RestController
@RequestMapping("wx")
public class FeedbackController {


    @Autowired
    FeedbackService feedbackService;

    @PostMapping("feedback/submit")
    public BaseRespVo<Feedback> submitFeedback(@RequestBody FeedbackBo feedbackBo) {

        feedbackService.submitFeedback(feedbackBo);

        return BaseRespVo.ok();
    }

}
